using System;
using System.Collections.Generic;
using System.Text;

namespace Dll.Essences
{
    public  class Diff
    {
        int id;
        int userID;
        DateTime date;
        string name;
        public Diff()
        {

        }

        public Diff(int Id, int UserID, string Name, DateTime Date)
        {
            id = Id;
            userID = UserID;
            name = Name;
            date = Date;
        }

        public int Id
        {
            get
            {
                return id;
            }
            set
            {
                id = value;
            }
        }

        public int UserId
        {
            get
            {
                return userID;
            }
            set
            {
                userID = value;
            }
        }

        public DateTime Date
        {
            get
            {
                return date;
            }
            set
            {
                date = value;
            }
        }

        public string ShortData
        {
            get
            {
                return date.ToString().Split(' ')[0];
            }
        }

        public string Name
      {
          get
          {
              return name;
          }
          set
          {
              name = value;
          }
      }
    }
}
